package cn.jhz.learn.blog.dao.blogger;

import cn.jhz.learn.blog.po.blogger.BlogBlogger;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface BlogBloggerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlogBlogger record);

    int insertSelective(BlogBlogger record);

    BlogBlogger selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlogBlogger record);

    int updateByPrimaryKey(BlogBlogger record);

    /*自定义*/
    BlogBlogger selectByBlogName(@Param("blog_name") String blogName);

    BlogBlogger selectByUid(@Param("uid") Integer uid);
}